auto merge of #302 : alexcrichton/cargo/doc-test, r=wycats
authorbors <bors@rust-lang.org>
Wed, 6 Aug 2014 23:57:54 +0000 (23:57 +0000)
committerbors <bors@rust-lang.org>
Wed, 6 Aug 2014 23:57:54 +0000 (23:57 +0000)
commita87c37bd79210ee87d60d352f566c1ad21c00313
tree39e843ecc4ab1ac63b1cd5fc6c9022fb4e432109
parent72dabaf3999ecf1ad93636ce0053795ff011450f
parent0484cd880eded66739792cc1bc8e393e9f108365
auto merge of #302 : alexcrichton/cargo/doc-test, r=wycats

Whenever `cargo test` is run and a testable library target is available, the doc
tests will be run. This can be opted out of with `test = false` as usual.

This is currently not super useful due to rust-lang/rust#16157, but I expect
that to be merged soon. In the meantime examples will need to `extern crate foo`
explicitly.

Closes #334
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/util/toml.rs